#include <stdio.h>

void mm_mil (double x)
{
    printf("%fmm换算得到%fmil\n", x, x*39.3700787402);
}
void mil_mm (double x)
{
    printf("%fmil换算得到%fmm\n", x, x*0.0254);
}

int main()
{
    int i;
    printf("若你想将mm转换成mil请输入1,若想将mil转换成mm请输入0\n");
    scanf("%d",&i);
    double mm , mil;
    if (i == 1)
    {
        printf("请输入值\n");
        scanf("%lf", &mm);
        mm_mil(mm);
    }
    else
    {
        printf("请输入值\n");
        scanf("%lf", &mil);
        mil_mm(mil);
    }
    
    return 0;
}